import 'package:airbnb_clone/internal/cache/app_cache.dart';

class LoginCheck {
  LoginCheck._();
  factory LoginCheck.create() => LoginCheck._();
  static LoginCheck? _instance;
  static Future<void> init() async {
    _instance ??= LoginCheck.create();
  }

  static bool check() {
    // AppCache.cleanToken();
    String? token = AppCache.token;
    if (token == null || token == "") {
      // print("未登录");
      return false;
    }

    return true;
  }
}
